home *** CD-ROM | disk | FTP | other *** search
Wrap
/**************************************************/ /* VignetteGrey V1.02 */ /* Image Engineer script */ /* by Simon Edwards */ /* Applies a blurred Vignette effect to an image. */ /* */ /* MS: Alpha now uses zoomlevel of original image */ /* */ /**************************************************/ Options results signal on error /* Setup a place for errors to go */ if arg()==0 then exit PROJECT_INFO arg(1) Type if result='GREY' then exit CONVERT_TO_GREY arg(1) greyimage=result PROJECT_INFO arg(1) Width width=result PROJECT_INFO arg(1) Height height=result PROJECT_INFO arg(1) Zoom zoomlevel=result 'OPEN IE:alpha/Spherical.alpha 8bit' alphachannel=result PROJECT_SET alphachannel ZOOM zoomlevel 'MARK' arg(1) 'PRIMARY' 'MARK' greyimage 'SECONDARY' 'MARK' alphachannel 'ALPHA' 'COMPOSITE 0 0 ALPHA STRETCH' CLOSE alphachannel CLOSE greyimage exit /*******************************************************************/ /* This is where control goes when an error code is returned by IE */ /* It puts up a message saying what happened and on which line */ /*******************************************************************/ error: if RC=5 then do /* Did the user just cancel us? */ IE_TO_FRONT LAST_ERROR 'REQUEST "'||RESULT||'"' exit end else do IE_TO_FRONT LAST_ERROR 'REQUEST "Error detected!!!'||D2C(10)||'Image Engineer error message is as follows'||D2C(10)||result||D2C(10)||'Script failed on line '||SIGL||'"' 'Doh!' exit end